﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005A7 RID: 1447
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FinishPerformSectionIdScRsp : IMessage<FinishPerformSectionIdScRsp>, IMessage, IEquatable<FinishPerformSectionIdScRsp>, IDeepCloneable<FinishPerformSectionIdScRsp>, IBufferMessage
	{
		// Token: 0x1700128C RID: 4748
		// (get) Token: 0x0600410C RID: 16652 RVA: 0x000B1F73 File Offset: 0x000B0173
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FinishPerformSectionIdScRsp> Parser
		{
			get
			{
				return FinishPerformSectionIdScRsp._parser;
			}
		}

		// Token: 0x1700128D RID: 4749
		// (get) Token: 0x0600410D RID: 16653 RVA: 0x000B1F7A File Offset: 0x000B017A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FinishPerformSectionIdScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700128E RID: 4750
		// (get) Token: 0x0600410E RID: 16654 RVA: 0x000B1F8C File Offset: 0x000B018C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FinishPerformSectionIdScRsp.Descriptor;
			}
		}

		// Token: 0x0600410F RID: 16655 RVA: 0x000B1F93 File Offset: 0x000B0193
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishPerformSectionIdScRsp()
		{
		}

		// Token: 0x06004110 RID: 16656 RVA: 0x000B1FA8 File Offset: 0x000B01A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishPerformSectionIdScRsp(FinishPerformSectionIdScRsp other) : this()
		{
			this.sectionId_ = other.sectionId_;
			this.itemList_ = other.itemList_.Clone();
			this.retcode_ = other.retcode_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004111 RID: 16657 RVA: 0x000B2011 File Offset: 0x000B0211
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishPerformSectionIdScRsp Clone()
		{
			return new FinishPerformSectionIdScRsp(this);
		}

		// Token: 0x1700128F RID: 4751
		// (get) Token: 0x06004112 RID: 16658 RVA: 0x000B2019 File Offset: 0x000B0219
		// (set) Token: 0x06004113 RID: 16659 RVA: 0x000B2021 File Offset: 0x000B0221
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SectionId
		{
			get
			{
				return this.sectionId_;
			}
			set
			{
				this.sectionId_ = value;
			}
		}

		// Token: 0x17001290 RID: 4752
		// (get) Token: 0x06004114 RID: 16660 RVA: 0x000B202A File Offset: 0x000B022A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MessageItem> ItemList
		{
			get
			{
				return this.itemList_;
			}
		}

		// Token: 0x17001291 RID: 4753
		// (get) Token: 0x06004115 RID: 16661 RVA: 0x000B2032 File Offset: 0x000B0232
		// (set) Token: 0x06004116 RID: 16662 RVA: 0x000B203A File Offset: 0x000B023A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001292 RID: 4754
		// (get) Token: 0x06004117 RID: 16663 RVA: 0x000B2043 File Offset: 0x000B0243
		// (set) Token: 0x06004118 RID: 16664 RVA: 0x000B204B File Offset: 0x000B024B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x06004119 RID: 16665 RVA: 0x000B2054 File Offset: 0x000B0254
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FinishPerformSectionIdScRsp);
		}

		// Token: 0x0600411A RID: 16666 RVA: 0x000B2064 File Offset: 0x000B0264
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FinishPerformSectionIdScRsp other)
		{
			return other != null && (other == this || (this.SectionId == other.SectionId && this.itemList_.Equals(other.itemList_) && this.Retcode == other.Retcode && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600411B RID: 16667 RVA: 0x000B20D8 File Offset: 0x000B02D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SectionId != 0U)
			{
				num ^= this.SectionId.GetHashCode();
			}
			num ^= this.itemList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600411C RID: 16668 RVA: 0x000B2154 File Offset: 0x000B0354
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600411D RID: 16669 RVA: 0x000B215C File Offset: 0x000B035C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600411E RID: 16670 RVA: 0x000B2168 File Offset: 0x000B0368
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SectionId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.SectionId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.Reward);
			}
			this.itemList_.WriteTo(ref output, FinishPerformSectionIdScRsp._repeated_itemList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600411F RID: 16671 RVA: 0x000B21F0 File Offset: 0x000B03F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SectionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SectionId);
			}
			num += this.itemList_.CalculateSize(FinishPerformSectionIdScRsp._repeated_itemList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004120 RID: 16672 RVA: 0x000B2274 File Offset: 0x000B0474
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FinishPerformSectionIdScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SectionId != 0U)
			{
				this.SectionId = other.SectionId;
			}
			this.itemList_.Add(other.itemList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004121 RID: 16673 RVA: 0x000B2301 File Offset: 0x000B0501
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004122 RID: 16674 RVA: 0x000B230C File Offset: 0x000B050C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 16U)
				{
					if (num == 8U)
					{
						this.SectionId = input.ReadUInt32();
						continue;
					}
					if (num == 16U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 42U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 74U)
					{
						this.itemList_.AddEntriesFrom(ref input, FinishPerformSectionIdScRsp._repeated_itemList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400199B RID: 6555
		private static readonly MessageParser<FinishPerformSectionIdScRsp> _parser = new MessageParser<FinishPerformSectionIdScRsp>(() => new FinishPerformSectionIdScRsp());

		// Token: 0x0400199C RID: 6556
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400199D RID: 6557
		public const int SectionIdFieldNumber = 1;

		// Token: 0x0400199E RID: 6558
		private uint sectionId_;

		// Token: 0x0400199F RID: 6559
		public const int ItemListFieldNumber = 9;

		// Token: 0x040019A0 RID: 6560
		private static readonly FieldCodec<MessageItem> _repeated_itemList_codec = FieldCodec.ForMessage<MessageItem>(74U, MessageItem.Parser);

		// Token: 0x040019A1 RID: 6561
		private readonly RepeatedField<MessageItem> itemList_ = new RepeatedField<MessageItem>();

		// Token: 0x040019A2 RID: 6562
		public const int RetcodeFieldNumber = 2;

		// Token: 0x040019A3 RID: 6563
		private uint retcode_;

		// Token: 0x040019A4 RID: 6564
		public const int RewardFieldNumber = 5;

		// Token: 0x040019A5 RID: 6565
		private ItemList reward_;
	}
}
